package com.fare.taluo.application.system.auth;

import com.fare.taluo.vo.auth.RegisterVo;
import com.fare.taluo.vo.auth.UserInfoVO;

public interface UserInfoApplication {
	/**
	 * 通过登陆ＩＤ获得用户信息
	 * @param logonId
	 * @return
	 */
	public UserInfoVO getUserInfoByLogonid(String logonId);
	
	/**
	 * 当前用户ID信息
	 * @param logonId
	 * @return
	 */
	public UserInfoVO getUserInfoByLocalid(Long localId);
	
	/**
	 * 获取当前登录的用户信息
	 * */
	public UserInfoVO getCurrentUser();
	
	/**
	 * 验证email是否已被注册
	 * @param username
	 * @return
	 */
	/*public boolean queryEmailIsExist(Long ids,String email)throws Exception;*/
	
	/**
	 * 用户密码修改
	 * @param user
	 * @return
	 */
	public boolean updatePassWord(Long userIds,String password)throws Exception;

	/**
	 * 更新一个用户
	 * @param user
	 */
	public void updateUser(UserInfoVO user)throws Exception;
	
	/**
	 * 检查用户是否使用
	 * @param email ,username,ids
	 * @return
	 */
	public boolean queryIsExist(Long ids,String email ,String userName)throws Exception;

	public boolean checkInputPassword(Long userId, String oldpassword);
	/**　
	 * 保存注册新用户
	 * @param vo
	 */
	public void save(RegisterVo vo);

	boolean deleteUser(Long userId);
}
